package com.letcoding.spiderAutoHome.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.letcoding.spiderAutoHome.dao.CarTestDao;
import com.letcoding.spiderAutoHome.module.CarTest;
import com.letcoding.spiderAutoHome.service.CarTestService;
import org.springframework.stereotype.Service;

/**
 * @ClassName CarTestServiceImpl
 * @Description TODO
 * @Author will
 * @Date 2021/5/6 14:49
 * @Company 北京华焱坤泰科技有限公司
 */
@Service
public class CarTestServiceImpl extends ServiceImpl<CarTestDao,CarTest> implements CarTestService {
    @Override
    public Page<CarTest> queryTitleByPage(long page, long pageSize) {
        Page<CarTest> queryPage = new Page<>(page, pageSize);
        QueryWrapper<CarTest> queryWrapper = new QueryWrapper<>();
        queryWrapper.select("title");
        return  baseMapper.selectPage(queryPage, queryWrapper);
    }
}
